package com.hx.base.innerclass;

/**
 * @author jxlgcmh
 * @date 2020-08-16 10:04
 * @description 静态内部内的使用
 */
public class StaticInnerClass {

    private static int shared = 100;

    public static class MyStaticInnerClass {
        public void innerMethod() {
            System.out.println("inner" + shared);
        }
    }

    public void test() {
        MyStaticInnerClass myStaticInnerClass = new MyStaticInnerClass();
        myStaticInnerClass.innerMethod();
    }
}
